import { SHARE_CHANNEL } from "../const/MSG";
import { shareInfo } from "../model/shareInfo";
import { BannerOptions } from "./BannerOptions";
import { CustomOptions } from "./CustomOptions";

export interface IPlatform {
    showBanner(option: BannerOptions);
    hideBanner(destroy: boolean);
    showVideo(completeCallback?: (res: any) => void, idIndex?: number);
    showInter();
    showCustomAd(options: CustomOptions, index: number, onClose);
    hideCustomAd(index?: number);
    initShare(shareInfoArr: Array<shareInfo>);
    startRecord(duration: number, callback: () => void);
    stopRecord(callback: (res: boolean | string) => void);
    share(channel: SHARE_CHANNEL, callback?: (shared: boolean) => void, shortCall?: (err: any) => void)
    vibrateShort();
    vibrateLong();
}